<?php

namespace HuoShu\Data;

class ItemsFields{
    public function agent_level(&$items){
        foreach($items as $k=>$v){
            $type=$v['user_type'];
            if($type=='6'){
                $items[$k]['agent_level']='一级代理';
            }else if($type=='7'){
                $items[$k]['agent_level']='二级代理';
            }
        }
    }
}

